//
//  RBGenerateUserSigIn.h
//  RMMaterialRed
//
//  Created by XBWH on 2024/3/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define SDKAPPID [RBGenerateUserSigIn currentSDKAppid]
#define SECRETKEY [RBGenerateUserSigIn currentSecretkey]

#define TUIDemoServerName(name, test) [RBGenerateUserSigIn serverName:name isTest:test]
#define TUIDemoSwitchServer(name) [RBGenerateUserSigIn switchServer:name]
#define TUIDemoCurrentServer [RBGenerateUserSigIn currentServer]
#define TUIDemoSwitchTest(test) [RBGenerateUserSigIn switchTestEnvironmenet:test]
#define TUIDemoIsTestEnvironment [RBGenerateUserSigIn isTestEnvironment]

// 服务器类型
// Server Type
typedef NS_ENUM(NSInteger, TUIDemoServerType) {
    TUIDemoServerTypePublic         = 0,    // 公有云
    TUIDemoServerTypePrivate        = 1,    // 私有云
    TUIDemoServerTypeSingapore      = 2,    // 新加坡
    TUIDemoServerTypeCustomPrivate  = 3,    // 自定义私有云
    TUIDemoServerTypeKorea          = 4,    // 韩国
    TUIDemoServerTypeGermany        = 5,    // 德国
    TUIDemoServerTypeIndia          = 6,    // 印度
};

static const int singapore_SDKAPPID = 0;
static const int korea_SDKAPPID = 0;
static const int germany_SDKAPPID = 0;
static const int india_SDKAPPID = 0;
static const int EXPIRETIME = 604800;

static NSString *const secretkey = @"7e3cf69151d75178205a5efacd8771f85e2b0066c972db7eec93362bedec2212";
static const int sdkappid = 1400693354;

static NSString * const singapore_SECRETKEY = @"";
static NSString * const korea_SECRETKEY = @"";
static NSString * const germany_SECRETKEY = @"";
static NSString * const india_SECRETKEY = @"";
@interface RBGenerateUserSigIn : NSObject

+ (NSString *)serverName:(TUIDemoServerType)serverType isTest:(BOOL)isTest;
+ (void)switchServer:(TUIDemoServerType)serverType;
+ (TUIDemoServerType)currentServer;
+ (BOOL)isTestEnvironment;
+ (void)switchTestEnvironmenet:(BOOL)test;
+ (void)setCustomPrivateServer:(NSString *)server;
+ (NSString *)customPrivateServer;
+ (void)setCustomPrivatePort:(NSUInteger)port;
+ (NSUInteger)customPrivatePort;
+ (int)currentSDKAppid;
+ (NSString *)currentSecretkey;
+ (NSString *)genTestUserSig:(NSString *)identifier;
@end


NS_ASSUME_NONNULL_END
